//
//  ViewController.m
//  demoGetVerificationCode
//
//  Created by MacBook on 2018/10/3.
//  Copyright © 2018年 MacBook. All rights reserved.
//

#import "ViewController.h"

#import "XBGetVerificationCodeView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
   
    [super viewDidLoad];
   
    XBGetVerificationCodeView * xbView = [[XBGetVerificationCodeView alloc]initWithFrame:CGRectMake(100, 100, 100, 40)];
   
    [xbView setBackgroundColor:[UIColor orangeColor]];
    
    xbView.tmpCodeType = XBGetVerificationCodeThree;
    
    [xbView setSetShowCodeNumber:^(NSString *codeNumber) {
       
        NSLog(@"验证码为：%@",codeNumber);
    }];
    
    [self.view addSubview:xbView];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
